package com.wenguo.bussines.model;

import java.io.Serializable;

/**
 * 用户登录记录
 */
public class Log implements Serializable{
    
    private static final long serialVersionUID = 6517894944076014660L;
    
    /**
     * 用户账号
     */
    private User   user;
    /**
     * 用户登录IP地址
     */
    private String   ip;
    /**
     * 用户登录时间
     */
    private String   date;
    
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	
	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("user: ").append(user.getId()).append(",");
        sb.append("ip: ").append(ip).append(",");
        sb.append("date: ").append(date);
        return sb.toString();
    }
}
